<?php

/**
 * Releases form base class.
 *
 * @package    form
 * @subpackage releases
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 8807 2008-05-06 14:12:28Z fabien $
 */
class BaseReleasesForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'id'                   => new sfWidgetFormInputHidden(),
      'nombre'               => new sfWidgetFormInput(),
      'idvideoanimacion'     => new sfWidgetFormInput(),
      'subtituloscoloreados' => new sfWidgetFormInput(),
      'idcodecvideo'         => new sfWidgetFormInput(),
      'idcodecaudio'         => new sfWidgetFormInput(),
      'idcontenedor'         => new sfWidgetFormInput(),
      'resolucion'           => new sfWidgetFormInput(),
      'idfuente'             => new sfWidgetFormInput(),
      'censurado'            => new sfWidgetFormInput(),
      'recomendado'          => new sfWidgetFormInput(),
      'insertado'            => new sfWidgetFormDate(),
      'finalizado'           => new sfWidgetFormInput(),
    ));

    $this->setValidators(array(
      'id'                   => new sfValidatorPropelChoice(array('model' => 'Releases', 'column' => 'id', 'required' => false)),
      'nombre'               => new sfValidatorString(array('max_length' => 50)),
      'idvideoanimacion'     => new sfValidatorInteger(),
      'subtituloscoloreados' => new sfValidatorInteger(array('required' => false)),
      'idcodecvideo'         => new sfValidatorInteger(array('required' => false)),
      'idcodecaudio'         => new sfValidatorInteger(array('required' => false)),
      'idcontenedor'         => new sfValidatorInteger(array('required' => false)),
      'resolucion'           => new sfValidatorString(array('max_length' => 10, 'required' => false)),
      'idfuente'             => new sfValidatorInteger(array('required' => false)),
      'censurado'            => new sfValidatorInteger(array('required' => false)),
      'recomendado'          => new sfValidatorInteger(array('required' => false)),
      'insertado'            => new sfValidatorDate(),
      'finalizado'           => new sfValidatorInteger(),
    ));

    $this->widgetSchema->setNameFormat('releases[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Releases';
  }


}
